Skip to content

fix(registry): nest perpetual decrease request payload and restore vitest setup#439

Merged
0xTomDaniel merged 1 commit intonextfrom
fix/436-perpetual-decrease-nested-union
Feb 25, 2026
Merged

fix(registry): nest perpetual decrease request payload and restore vitest setup#439
0xTomDaniel merged 1 commit intonextfrom
fix/436-perpetual-decrease-nested-union

Conversation

@0xTomDaniel
Copy link
Contributor

Summary

  • refactor perpetual decrease quote/plan request contracts to a shared outer object with nested decrease discriminated union (full | partial)
  • update and harden registry schema tests for nested decrease payloads and explicit rejection of legacy top-level mode/full/partial payloads
  • export decrease quote/plan request schemas from endpoint interfaces and add endpoint-interface unit coverage
  • restore missing root Vitest setup files at typescript/tests/setup/ so workspace-level Vitest commands stop failing on missing setup path

Test Plan

  • pnpm -C typescript lint
  • pnpm -C typescript build
  • pnpm -C typescript test:ci
  • pnpm -C typescript exec vitest run --dir onchain-actions-plugins/registry

Notes

  • This is an intentional breaking contract change for perpetual decrease request shape (internal codebase policy: update call sites directly, no compatibility aliases).

@0xTomDaniel 0xTomDaniel added this pull request to the merge queue Feb 25, 2026
Merged via the queue into next with commit 3bd17da Feb 25, 2026
8 checks passed
@0xTomDaniel 0xTomDaniel deleted the fix/436-perpetual-decrease-nested-union branch February 25, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant